<html>
<head>
<title>My Form</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-horizontal" action="/form/index" method="post">
                <?php //echo validation_errors(); ?>
                <?php //echo form_open('form'); ?>
                <div class="form-group">
                    <?php echo form_error('username'); ?>
                    <label class="control-label col-sm-2">用户名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="username" value="<?php echo set_value('username'); ?>" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <?php echo form_error('password'); ?>
                    <label class="control-label col-sm-2">密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="password" value="<?php echo set_value('password'); ?>" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <?php echo form_error('passconf'); ?>
                    <label class="control-label col-sm-2">确认密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="passconf" value="<?php echo set_value('passconf'); ?>" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <?php echo form_error('email'); ?>
                    <label class="control-label col-sm-2">邮箱</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="email" value="<?php echo set_value('email'); ?>" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" class="btn btn-primary btn-lg" value="提交" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<p class="alert alert-warning" style="position: fixed; bottom:0px;">页面渲染耗时 <strong>{elapsed_time}</strong> 秒. <?php echo  (ENVIRONMENT === 'development') ?  'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
</body>
</html>